@extends('web.layouts.app')

@section('title', trans('seo.default_articles.title'))
@section('keywords', trans('seo.default_articles.keywords'))
@section('description', trans('seo.default_articles.description'))

@section('styles')
  <link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/article.css')}}">
  <style type="text/css">
    .article-box ul li {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  </style>
@endsection

@section('content')
  <div class="article-wrap mt20 pt10 clearfix">
    <div class="article-left L">
    <!-- 新手导航 -->
    <div class="Novice-guide">
      <p class="name">新手引导</p>
      <ul class="Novice-guide-list clearfix">
        <li>操作流程</li>
        @foreach($xszc as $x)
          <li><a href="{{ action("ArticleController@xszc",[$x->id])}}">{{ $x->title }}</a><i></i></li>
        @endforeach
      </ul>
    </div>
    <!-- 新手导航 /-->
      <!--平台公告-->
      <div class="article-box site-notice clearfix">
        <h2 class="article-title">平台公告<a href="{{ action("ArticleController@notice")  }}" style="display: block;float: right;font-size: 12px;line-height:32px;font-style: normal;">更多 >>></a></h2>
        @foreach($notice_article_categories as $article_category)
          <dl>
            <dt>{{$article_category->name}}</dt>
            @foreach($article_category->get_articles_limit(3) as $article)
              <dd><a href="{{action('ArticleController@notice_article_info',[$article->id])}}">{{ str_limit($article->title,15) }}</a>
              </dd>
            @endforeach
          </dl>
        @endforeach
      </div>
      <!--帮助中心-->
      <div class="article-box site-notice mt20 clearfix">
        <h2 class="article-title">帮助中心<a href="{{ action("ArticleController@help")  }}" style="display: block;float: right;font-size: 12px;line-height:32px">更多 >>></a></h2>

        @foreach($help_article_categories as $article_category)
          <dl>
            <dt>{{$article_category->name}}</dt>
            @foreach($article_category->get_articles_limit(3) as $article)
              <dd><a href="{{action('ArticleController@help_article_info',[$article->id])}}">{{ str_limit($article->title,15) }}</a>
              </dd>
            @endforeach
          </dl>
        @endforeach
      </div>
      <!--关于我们-->
      <div class="article-box about-us mt20 clearfix" style="margin-bottom:20px">
        <h2 class="article-title">关于我们<a class="a_none" href="{{ action("ArticleController@about")  }}" style="display: block;float: right;font-size: 12px;line-height:32px;font-style: normal;">更多 >>></a></h2>
        <ul>
          @foreach($about_articles as $article)
            <li><a href="{{ action('ArticleController@about',[$article->id]) }}">{{ str_limit($article->title,15) }}</a></li>
          @endforeach
        </ul>
      </div>
    </div>
    <div class="article-right R">
      @foreach($article_recommend_categories as $article_category)
              <!--媒体报道-->
      <div class="article-box side-news clearfix">
        <h2 class="article-title">{{ $article_category->name }}<a class="a_none" href="{{ action('ArticleController@list',[$article_category->id]) }}" style="display: block;float: right;font-size: 12px;line-height:32px;font-style: normal;">更多 >>></a></h2>
        <ul>
          @foreach($article_category->get_recommend_articles(8) as $article)
            <li><a href="{{ action("ArticleController@article_information_info",[$article->id]) }}">{{ str_limit($article->title,30) }}</a></li>
          @endforeach
        </ul>
      </div>
      @endforeach
    </div>
  </div>
@endsection